<?=view('home.common.header')?>
<?=view('home.common.nav')?>
<div class="container">
    <div class="container-fluid">
        <div class="row">
            <?php if ($products && count($products)): ?>
            <?php foreach ($products as $val): ?>
            <div class="col-xs-6 col-sm-4" style="padding-left: 3px;padding-right: 3px;">
                <div class="thumbnail" style="margin-bottom: 5px;">
                    <div class="caption">
                        <p class="price">￥<?=$val->price?></p>
                        <h5><a href="<?=url("home/index/productshow/{$val->id}?showwxpaytitle=1")?>"><?=$val->name?></a></h5>
                        <p class="desc"><?=  substr_cut($val->desc, 7)?></p>
                    </div>
                </div>
            </div>
            <?php endforeach; ?>
            <?php endif; ?>
        </div>
    </div>
</div>
<?=view('home.common.footer')?>